package cn.edu.neusoft.amicooldemo.service;

import java.util.List;

import cn.edu.neusoft.amicooldemo.bean.ArticleBean;
import cn.edu.neusoft.amicooldemo.bean.ProjectBean;
import cn.edu.neusoft.amicooldemo.bean.TcaseBean;
import cn.edu.neusoft.amicooldemo.bean.TwareBean;
import cn.edu.neusoft.amicooldemo.bean.VideoBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface FocusService {
    @GET("api.php/create/mod/{mod}")
    Call<String> focus(@Query("mod") String mod, @Query("idolid") int idolid,
                          @Header("SessionID") String SessionID);

    @GET("api.php/delete/mod/{mod}")
    Call<String> unfocus(@Path("mod") String mod,@Query("idolid") int idolid,@Header("SessionID") String sessionID);

    @GET("api.php/exists/mod/{mod}")
    Call<String> exists(@Path("mod") String mod, @Query("idolid") int idolid, @Header("SessionID") String sessionID);


    @GET("api.php/lists/mod/{mod}/userid/{userid}")
    Call<List<ProjectBean>> getProjectList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID,
                                          @Query("userid") int userid);

    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getArticleList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID,
                                          @Query("userid") int userid);

    @GET("api.php/lists/mod/{mod}/userid/{userid}")
    Call<List<TcaseBean>> getTcaseList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID,
                                        @Query("userid") int userid);
    @GET("api.php/lists/mod/{mod}/userid/{userid}")
    Call<List<TwareBean>> getTwareList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID,
                                        @Query("userid") int userid);

    @GET("api.php/lists/mod/{mod}/userid/{userid}")
    Call<List<VideoBean>> getVideoList(@Path("mod")String mod, @Query("page") int page, @Header("SessionID") String sessionID,
                                        @Query("userid")int userid);

	
}
